package com.bookstore.bauhinia.evaluation.service;

import com.bookstore.bauhinia.pojo.Category;
import com.bookstore.bauhinia.pojo.Evaluation;

import java.util.List;

/**
 * @author lzo
 */

public interface EvaluationService {
    /**
     * 往数据库插入一本书
     * @see Evaluation
     * @param record
     * @return 数字大于0则创建成功
     */
    int insert(Evaluation record);
    Evaluation selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    int updateByPrimaryKey(Evaluation record);
    List<Evaluation> getAllEvaluations();
    List<Evaluation> getEvaluationsByBookId(Integer bookId);
}